package main

import (
	"log"
	"micro-oauth/config"
	"micro-oauth/http"
)

func main(){
	router := http.NewRouter()
	httpConfig := config.LoadHTTPConfig()
	err := router.Run(httpConfig.Address)
	if err != nil {
		log.Fatal("http server stop: " + err.Error())
	}
}